package cn.leaf.web.util;

/**
 *
 * description: 回调方法
 *
 * @author twinkle leaf
 * @version v1.0.0
 * @since 2021-11-07 10:46:14
 * slogan: There are no two identical leaves in the world.
 *
 */
public interface CallBack {

    /**
     * 回调执行方法
     */
    void executor();

    /**
     * 本回调任务名称
     * @return /
     */
    default String getCallBackName() {
        return Thread.currentThread().getId() + ":" + this.getClass().getName();
    }
}
